﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;
using l1cs.server.model;
using l1cs.server.serverpackets;
using l1cs.server.datatables;

namespace l1cs.server.clientpackets
{
    public class C_Clan : ClientBasePacket
    {
        private const String _C_CLAN = "[C] C_Clan";
        private static Logger _log = Logger.getLogger( typeof( C_Clan ).FullName );

        public C_Clan( byte[] abyte0, ClientThread client )
            : base( abyte0 )
        {
            int clanId = readD();

            L1PcInstance pc = client.getActiveChar();
            L1Clan clan = ClanTable.getInstance().getTemplate( clanId );
            String name = clan.getClanName();
            pc.sendPackets( new S_Emblem( clan.getClanId() ) );
        }

        override
        public String getType()
        {
            return _C_CLAN;
        }
    }
}
